package cn.craftyun.yunexam.service;

import cn.craftyun.yunexam.entity.ExamStatus;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface ExamStatusService extends IService<ExamStatus> {
    ExamStatus getExamStatus(Long examId, Long userId);

    void isExamGetOn(Long examId, Long userId);

    void submitExam(Long examId, Long userId);

    boolean removeByExamId(Long examId);

    boolean removeByUserId(Long userId);

    boolean removeByPaperId(Long paperId);

    List<Map<String, Object>> getExamStatus(Long examId);
}
